Skip to content

Adding Abort to C# Websocket#3352

Merged
rekhoff merged 18 commits into
masterfrom
rekhoff/force-websocket-disconnect
Jan 30, 2026
Merged

Adding Abort to C# Websocket#3352
rekhoff merged 18 commits into
masterfrom
rekhoff/force-websocket-disconnect

Conversation

@rekhoff
Copy link
Copy Markdown
Contributor

@rekhoff rekhoff commented Oct 3, 2025

Description of Changes

The implementation of a solution to #3044 , this adds an Abort function to the WebSocket, which runs if Disconnect is called when the WebSocket is not connected.

API and ABI breaking changes

Not API breaking.

Expected complexity level and risk

1

Testing

  • Test locally with a C# CLI test client.
    Note: Before change (either on Rust of C# server), server would see 4 Debug log entries about connecting, but not see the Info log about the client connection ending like would normally be seen in a disconnect. After change, server shows no log entries at all, because connection is properly aborted.
  • Test locally with a C# WebGL test client.

@rekhoff rekhoff self-assigned this Oct 3, 2025
@rekhoff rekhoff requested a review from jdetter October 3, 2025 15:49
Comment thread sdks/csharp/src/SpacetimeDBClient.cs
@rekhoff rekhoff marked this pull request as ready for review October 3, 2025 17:31
@bfops bfops added the release-any To be landed in any release window label Oct 6, 2025
Comment thread sdks/csharp/src/SpacetimeDBClient.cs
@cloutiertyler cloutiertyler assigned jdetter and unassigned rekhoff Nov 3, 2025
Comment thread sdks/csharp/src/WebSocket.cs Outdated
Copy link
Copy Markdown
Contributor

@jdetter jdetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this myself but this looks good, just one small nit 👍

rekhoff and others added 2 commits November 25, 2025 10:13
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Signed-off-by: rekhoff <r.ekhoff@clockworklabs.io>
Signed-off-by: rekhoff <r.ekhoff@clockworklabs.io>
@rekhoff rekhoff enabled auto-merge November 25, 2025 18:19
@rekhoff rekhoff added this pull request to the merge queue Jan 30, 2026
Merged via the queue into master with commit 9a8b603 Jan 30, 2026
28 checks passed
@bfops bfops deleted the rekhoff/force-websocket-disconnect branch May 7, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants